package com.xyb.service;

import com.xyb.dao.ChapterMapper;
import com.xyb.entity.Chapter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WebChapterService {
    @Resource
    private ChapterMapper chapterMapper;

    public List<Chapter> selectChapterListAndCourseDetailsByCourseId(Long courseId) {
        List<Chapter> list = chapterMapper.selectChapterListAndCourseDetailsByCourseIdAndStatus(courseId);
        return list;
    }
}
